package com.baizhi.interfacex2;

public class Cat extends Pet implements Running{
    public Cat() {
    }

    public Cat(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println("这只"+getColor()+"颜色的"+getAge()+"岁的叫"+getName()+"的猫猫在吃鱼！！！");
    }

    public void catchMouth(){
        System.out.println("这只猫在抓老鼠");
    }

    @Override
    public void run() {
        System.out.println("这只猫跑出了猫步~~~");
    }
}
